import time
import pyautogui as pg
import threading

i = 1

def exef_watcher():
    timer = threading.Timer(60*60*10 + 60, down10)
    timer.start()

def down10():
    print("Thread 10 started")
    while i == 1:
        pg.click(870,417)#
        time.sleep(2)
        pg.click(827,625)
        time.sleep(3)
        pg.click(956,690)
        pg.click(660,640)
        time.sleep(3)
        pg.click(1264,542)
        time.sleep(3)
        #time.sleep(60*60*10 + 60)

def down9():
    print("Thread 9")
    while i == 1:
        pg.click(871,462)#
        time.sleep(2)
        pg.click(827,625)
        time.sleep(3)
        pg.click(956,690)
        pg.click(660,640)
        time.sleep(3)
        pg.click(1264,542)
        time.sleep(3)
        time.sleep(60*60*9 + 60)
        
def down7():
    print("Thread 7")
    while i == 1:
        pg.click(870,650)#
        pg.click(827,625)
        time.sleep(3)
        pg.click(956,690)
        pg.click(660,640)
        time.sleep(3)
        pg.click(1264,542)
        time.sleep(3)
        time.sleep(60*60*7 + 60)
        
def down6():
    print("Thread 6")
    while i == 1:
        pg.click(870,690)#
        time.sleep(2)
        pg.click(827,625)
        time.sleep(3)
        pg.click(956,690)
        pg.click(660,640)
        time.sleep(3)
        pg.click(1264,542)
        time.sleep(3)
        time.sleep(60*60*6 + 60)
    
def down333():
    print("Thread 333")
    while i == 1: 
        pg.click(870,733)#
        time.sleep(2)
        pg.click(827,625)
        time.sleep(3)
        pg.click(956,690)
        pg.click(660,640)
        time.sleep(3)
        pg.click(1264,542)
        time.sleep(3)
        time.sleep(60*333 + 60)

def down5():
    print("Thread 5")
    while i == 1:      
        pg.click(870,506)# 
        time.sleep(2)
        pg.click(827,625)
        time.sleep(4)
        pg.click(956,690)
        pg.click(660,640)
        time.sleep(3)
        pg.click(1264,542)
        time.sleep(3)

        pg.click(870,558)# 
        time.sleep(2)
        pg.click(827,625)
        time.sleep(3)
        pg.click(956,690)
        pg.click(660,640)
        time.sleep(3)
        pg.click(1264,542)
        time.sleep(3)
        
        time.sleep(60*60*5 + 60)

lock = threading.Lock()

while i == 1:    
    pg.click(870,417)#
    time.sleep(2)
    pg.click(827,625)
    time.sleep(3)
    pg.click(956,690)
    pg.click(660,640)
    time.sleep(3)
    pg.click(1264,542)
    time.sleep(3)

    pg.click(871,462)# 
    time.sleep(2)
    pg.click(827,625)
    time.sleep(3)
    pg.click(956,690)
    pg.click(660,640)
    time.sleep(3)
    pg.click(1264,542)
    time.sleep(3)


    time.sleep(60*60 + 60)